//javascript:
var regex = new RegExp("[\\?&]village=([^&#]*)");
var results = regex.exec(window.location.href);
village = results[1];
cookie_date = new Date(2099, 11, 11);
document.cookie = "farm" + village + "=0;expires=" + cookie_date.toGMTString();
end();